package org.oliver.crp.samtrack.client.ui.view;

import org.oliver.crp.samtrack.client.ui.widgets.ContextAreaListGrid;

import com.google.gwt.core.client.GWT;
import com.smartgwt.client.widgets.Canvas;
import com.smartgwt.client.widgets.layout.VLayout;

public class SampleView extends VLayout{
	
	private static final String DESCRIPTION = "SampleView";

	public SampleView() {
		super();
		
		GWT.log("init SampleView()...", null);
		
		this.addStyleName("sampleContextArea");
		this.setWidth("*");
		
		this.addMember(new ContextAreaListGrid());
	}
	
	public static class Factory implements ContextAreaFactory {

		private String id;

		@Override
		public Canvas create() {
			SampleView view = new SampleView();
			id = view.getID();
			
			return view;
		}

		@Override
		public String getID() {
			
			return id;
		}

		@Override
		public String getDescription() {
			
			return DESCRIPTION;
		}
		
	}
}
